package com.chixing.service;

import com.chixing.pojo.Pro;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

//
@Service
@Repository
public interface EsProService extends ElasticsearchRepository<Pro,Integer> {
    List<Pro> findByproductBrand(String productBrand);
    List<Pro> findByproductName(String productName);
}
